import request from '@/utils/request';

// 获取绩效列表
export const getPerformanceList = (performanceData) => {
    return request.get('/performance/list', { data: performanceData });
};

// 添加绩效
export const addPerformance = (performance) => {
    return request.post('/performance/add', performance);
};

// 获取绩效分页列表
export const getPerformancePageList = (pageNum, pageSize, performanceData) => {
    return request.post('/performance/Pagelist', {
        pageNum,
        pageSize,
        ...performanceData
    });
};

// 更新绩效
export const updatePerformance = (performance) => {
    return request.put('/performance/update', performance);
};

// 删除绩效
export const deletePerformance = (id) => {
    return request.delete(`/performance/delete/${id}`);
};

